﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Common.Net.DesignByContract;

namespace ClearUnit.TestRunners.Starts
{
    public sealed class AssemblyRunStart : TestRunStart
    {
        readonly Assembly _assembly;

        public Assembly Assembly
        {
            get { return _assembly; }
        }

        public AssemblyRunStart(Assembly assembly)
        {
            RequireArg.NotNull(() => assembly);

            _assembly = assembly;
        }

        public override string ShortDescription
        {
            get { return string.Format("Start tests from assembly {0}", Assembly.GetName().Name); }
        }
    }
}
